home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-17 | 1.4 KB | 72 lines | [TEXT/MPS ] |
- //
- // File: SLRefCnt.idl
- //
- // Contains: Interface for FW_ORefCount class
- // Release Version: $ ODF 2 $
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
-
- #ifndef SLREFCNT_IDL
- #define SLREFCNT_IDL
-
- #include <somobj.idl>
- #include <somcls.idl>
-
-
- //==============================================================================
- // Classes defined in this interface
- //==============================================================================
-
- interface FW_ORefCount;
-
- //==============================================================================
- // FW_ORefCount
- // Inspired by ODRefCntObject, renamed to match FW_MRefCount.
- // Semantics match ODRefCntObject: initial count is 0 and instances must be
- // deleted when the count goes to zero. This allows us to use instances of
- // this class with FW_TCountedSOMPtr.
- //==============================================================================
-
- interface FW_ORefCount : SOMObject
- {
- void Acquire();
- long Release();
-
- long GetRefCount();
-
- #ifdef __SOMIDL__
- implementation
- {
- functionprefix = FW_ORefCount;
-
- override:
- somInit,
- somUninit;
-
- releaseorder:
- somInit,
- somUninit,
- Acquire,
- Release,
- GetRefCount;
-
- majorversion = 1;
- minorversion = 0;
-
- passthru C_xh =
- "";
-
- passthru C_xih =
- "";
-
- #ifdef __PRIVATE__
- long fRefCount;
- #endif
- };
- #endif //# __SOMIDL__
- };
-
- #endif // SLREFCNT_IDL
-
-